<?php 
session_start();

$lastFileSize = filesize("/app/www/zhuogg-tool/igg/bean.html");

$flag=0;

if(isset($_SESSION['lastFileSize']) &&
 $lastFileSize > $_SESSION['lastFileSize']){
	$flag=1;
}
echo $lastFileSize;
echo  $_SESSION['lastFileSize'];
 $_SESSION['lastFileSize'] = $lastFileSize;

 ?>


<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	
	<script>

	if( <?php echo $flag; ?> == 1){
		alert('size change!');
	}

	setTimeout(function  () {
		window.location.reload();
	},1000);
	
// 	alert("不刷了");
	</script>

</body>
</html>
